<h2>Add new comment</h2>
<form name="frmAdd" id="frmAdd" method="POST" 
		action="<?php echo $this->url(array('controller'=>'comment', 'action'=>'add'));?>">
<table>
	<tr>
		<td>VN:</td>
		<td><textarea rows="4" cols="50" name="vn"><?php if(isset($this->vn)) echo $this->vn; ?></textarea></td>
	</tr>
	<tr>
		<td>JP:</td>
		<td><textarea rows="4" cols="50" style="ime-mode:active"  name="jp"><?php if(isset($this->jp)) echo $this->jp; ?></textarea></td>
	</tr>
	<tr>
		<td><input type="button" value="Save" onclick="add()"></input></td>
		<td><input type="button" value="Save & New" onclick="add_and_new()"></input></td>
	</tr>
</table>

</form>

<script type="text/javascript">
function add(){
	$("#frmAdd").ajaxForm({
		success: function(data){
			if (data == "1") {
				loadPage(1);
				parent.$.colorbox.close();
	            return false;
			}
		}
	}).submit();
}
</script>
